<?php
include_once "vendor/autoload.php";
use GraphAware\Neo4j\Client\ClientBuilder;
$client = ClientBuilder::create()->addConnection("bolt", "bolt://neo4j:admin@127.0.0.1:7687")->build();
include_once "result/alias.php";
include_once "result/department.php";
include_once "result/symptons.php";
include_once "result/totalSympton.php";
/**
 * @var array $alias
 * @var array $department
 * @var array $symptons
 * @var array $totalSympton
 */
foreach (array_keys($alias) as $disease) {
    $client->run("CREATE (n:`疾病` { `名称`: '{$disease}' }) RETURN n");
}
foreach ($totalSympton as $sympton) {
    $client->run("CREATE (n:`症状` { `名称`: '{$sympton}' }) RETURN n");
}
